﻿using Nasty.Core.Entity.Flow;
using Nasty.Core.Model;
using SqlSugar;

namespace Nasty.FlowModule.Areas.FlowConfig.Model
{
	public class FlowConfigNodeModel : SaveModel
	{
        /// <summary>
        /// 流程配置Id
        /// </summary>
        public string? FlowConfigId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string? Code { get; set; }


        /// <summary>
        /// 上一个节点Codes
        /// </summary>
        public List<string> PreNodeCodes { get; set; }

        /// <summary>
        /// 驳回节点Code
        /// </summary>
        public string? RejectNodeCode { get; set; }

        /// <summary>
        /// 位置X
        /// </summary>
        public int PositionX { get; set; }

        /// <summary>
        /// 位置Y
        /// </summary>
        public int PositionY { get; set; }

        /// <summary>
        /// 候选模式
        /// </summary>
        public CandidateMode CandidateMode { get; set; }

        /// <summary>
        /// 预选用户Ids
        /// </summary>
        public List<string>? PreUserIds { get; set; }

        /// <summary>
        /// 角色Ids
        /// </summary>
        public List<string>? RoleIds { get; set; }

        /// <summary>
        /// 部门Ids
        /// </summary>
        public List<string>? DepartmentIds { get; set; }
    }
}
